package com.zzl.bonds.ticket.feign;

import com.zzl.apidoc.annotation.ApidocOperation;
import com.zzl.apidoc.annotation.ApidocParam;
import com.zzl.bonds.ticket.dto.order.OrderAddDto;
import com.zzl.general.common.apidoc.annotation.ApidocReturnR;
import com.zzl.general.common.feign.config.FeignClientsConfig;
import com.zzl.general.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 订单中心rpc接口
 * @author gulili
 */
@FeignClient(value = "order", configuration = FeignClientsConfig.class)
public interface OrderFeign {
    /**
     * 保存订单数据
     */
    @PostMapping("order/feign/save")
    @ApidocOperation(description = "保存", operationId = "oo3")
    @ApidocReturnR
    Result save(@ApidocParam(name = "保存的对象值", required = true) @RequestBody @Validated OrderAddDto oOrder);
}
